<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp" %>
	<input type='hidden' name='search.name' value='${search.name}'/>
	<input type='hidden' name='parentId' value='${parentId}' />
	<input type='hidden' name='redirectUrl' value='<s:property value='redirectUrl'/>' />
	
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
		<tr>
			<td class="left-td-width-bg">
				<font color="red">*</font>菜单编码：
			</td>
			<td>
				<input name="entity.code" class="input_readOnly_99" type="text" id="code" size="16" readonly="readonly"
					value="<s:property value='entity.code'/>" dataType="Require|Unique"  msg="必填项|菜单编码必须是唯一" classType="com.jysz.certificate.persistence.model.system.Menu" valProperty="code" entityId="${entity.id}" contextPath="${contextPath}"/>
			</td>
			<td class="left-td-width-bg">
				<font color="red">*</font>菜单名：
			</td>
			<td>
				<input name="entity.name" class="input"  type="text" id="name" size="16"
					 value="<s:property value='entity.name'/>" dataType="Require"  msg="菜单名不能为空" />
			</td>			
		</tr>
		<tr>
			<td class="left-td-width-bg">
				  <font color="red">*</font>标题：
			</td>
			<td>
				<input name="entity.title" class="input" type="text" id="title" size="16"  value="<s:property value="entity.title"/>" dataType="Require"  msg="标题不能为空"  />
			</td>		
			<td class="left-td-width-bg">
				<font color="red">*</font>排序：
			</td>
			<td>
				<input name="entity.order" class="input" type="text" id="order" size="16"
					 value="<s:property value='entity.order'/>" onchange="javascript:changeCode(this.value);"/>
			</td>
		</tr>
			<tr>
				<td class="left-td-width-bg">
					<font color="red">*</font>target：
				</td>
				<td>
				<s:select cssClass="input_select_readOnly_98" name="entity.target" list="{'_self', '_blank','_parent','_top'}" theme="simple" headerKey="main" headerValue="main"></s:select>
					<br/>
				</td>
				<td class="left-td-width-bg">
					链接：
				</td>
				<td>
					<input type="text" class="input" id="entity.link"  name = "entity.link" value="<s:property value="entity.link"/>" size="200" style="width: 200px"/>&nbsp;&nbsp;&nbsp;&nbsp;站内链接推荐使用相对路径如：system/menu/index.do<br/>
				</td>				
			</tr>

	</table>
	 <table width="100%">
            	<tr>
                	<td><div align="center">
                	  <input type="submit" name="submit" value="" class="btn_save" />
                	&nbsp;&nbsp;
                      <input type="reset" name="reset" value="" class="btn_rest" onclick="clearForm(this.form);return false;"/>
                    </div>
                    </td>
                </tr>
     </table>        